//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.lry.rpc.starter.util;

import java.util.Map;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.PropertyValues;
import org.springframework.core.env.ConfigurableEnvironment;

public abstract class PropertyValuesUtils {
    public PropertyValuesUtils() {
    }

    public static PropertyValues getSubPropertyValues(ConfigurableEnvironment environment, String prefix) {
        Map<String, Object> subProperties = PropertySourcesUtils.getSubProperties(environment.getPropertySources(), environment, prefix);
        PropertyValues subPropertyValues = new MutablePropertyValues(subProperties);
        return subPropertyValues;
    }
}
